package com.caldremch.rxretrofit.api.function;

import android.util.Log;

import com.caldremch.rxretrofit.api.model.BaseResp;

import io.reactivex.annotations.NonNull;
import io.reactivex.functions.Function;


/**
 * Ubuntu 14.04 LTS
 * Created by Caldremch on 2016-11-2 下午12:49
 */


public class MyFunction<T> implements Function<BaseResp<T>, T> {
    public MyFunction() {
    }
    @Override
    public T apply(@NonNull BaseResp<T> tBaseResp) throws Exception {
        Log.e("tag",tBaseResp.toString());
        return tBaseResp.data;
    }
}
